]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Drop unused blockSourceEvents switch
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 18 Nov 2021 00:16:43 +0000 (01:16 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 29 Jan 2022 00:16:30 +0000 (01:16 +0100)
This could be used to selectively ignore events on the source
actor, but is now unused.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

js/ui/popupMenu.js

index 0cb4970c1fd3bd370c5abf9955e679bdf9f72323..72396f107f213105797f0cfa417b709c5690673d 100644 (file)
@@ -493,10 +493,6 @@ var PopupMenuBase = class {
 
         this.isOpen = false;
 
-        // If set, we don't send events (including crossing events) to the source actor
-        // for the menu which causes its prelight state to freeze
-        this.blockSourceEvents = false;
-
         this._activeMenuItem = null;
         this._settingsActions = { };
 
@@ -1323,8 +1319,7 @@ var PopupMenuManager = class {
 
         let source = menu.sourceActor;
         if (source) {
-            if (!menu.blockSourceEvents)
-                this._grabHelper.addActor(source);
+            this._grabHelper.addActor(source);
             menudata.enterId = source.connect('enter-event',
                 () => this._onMenuSourceEnter(menu));
             menudata.focusInId = source.connect('key-focus-in', () => {